package com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.battcn.swagger.annotation.EnableSwagger2Doc;

/**
 * @author yanglei
 *
 *         2017年11月26日
 */
@EnableSwagger2Doc
@SpringBootApplication
@EnableScheduling
@EnableCaching
@MapperScan(basePackages = { "com.battcn.platform.mapper" })
@ComponentScan(basePackages = { "com.battcn.platform.task", "com.battcn.framework.quartz","com.battcn.framework.listener",
		"com.battcn.platform.service", "com.battcn.config", "com.battcn.platform.controller","com.battcn.platform.logAop" })
public class SpringbootDemoApplication {

	public static void main(String[] args) {
		ApplicationContext   ctx =SpringApplication.run(SpringbootDemoApplication.class, args);
		String[]  beanNames =  ctx.getBeanDefinitionNames();
	   System.out.println("所以beanNames个数："+beanNames.length);
	     for(String bn:beanNames){
	           System.out.println(bn);
	   }

	}
}
